<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:p="http://primefaces.org/ui"
    	xmlns:s="http://www.suricattus.com.br/jsf/ui"
		xmlns:sf="http://www.suricattus.com.br/jsf/fn"
    	xmlns:composite="http://java.sun.com/jsf/composite">

	<composite:interface>	
	
		<composite:attribute name="coberturas" required="true"  />
		
		<composite:attribute name="servico" required="true"  />
    	
	</composite:interface>	
	
	<composite:implementation>	
	
		<h:form id="modalCoberturasForm" styleClass="form-horizontal">
		
			<p:dialog header="#{cc.attrs.servico.titulo}" widgetVar="_dgInfoCoberturas" resizable="false" draggable="false" width="600" height="400" modal="true" closable="true">
				
				<legend>#{labels['label.coberturas']}</legend>
				
				<p:dataTable id="dtCoberturas" var="_item" value="#{cc.attrs.coberturas}" 
						styleClass="table table-bordered table-striped table-hover" emptyMessage="#{messages['msgP006']}">
				
					<p:column id="descricao" headerText="#{labels['label.descricao']}" >
						<h:outputText value="#{_item.descricao}" />
					</p:column>				
										
					<p:column id="valor" style="text-align:center" headerText="#{labels['label.valor']}">
						<h:outputText value="#{_item.valor}"/>
					</p:column>
	
				</p:dataTable>
				
				<br/>  	
				
				<div class="form-actions" style="text-align:center; padding-left: 0px">
					<div class="help-inline">
						<a onclick="_dgInfoCoberturas.hide()" class="btn btn-primary">
							<i class="icon-remove icon-white"></i>
							<h:outputText value=" #{labels['botao.fechar']}" />
						</a>
					</div>
				</div>

			</p:dialog>
			
		</h:form>
					
	</composite:implementation>
	
</html>